Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?
A. /etc/keys
B. /proc/keys
C. /etc/inittab
D. /proc/inittab
E. /etc/reboot
Question 1
Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?
A. /etc/keys
B. /proc/keys
C. /etc/inittab
D. /proc/inittab
E. /etc/reboot
After running the command umount /mnt, the following error message is displayed: umount: /mnt: device is busy.
What is a common reason for this message?
A. The kernel has not finished flushing disk writes to the mounted device.
B. A user has a file open in the /mnt directory.
C. Another file system still contains a symlink to a file inside /mnt.
D. The files in /mnt have been scanned and added to the locate database.
E. The kernel thinks that a process is about to open a file in /mnt for reading.
B
Which of the following commands updates the linker cache of shared libraries?
A. mkcache
B. soconfig
C. mkldconfig
D. Iddconfig
E. Idconfig
E
What is the purpose of the Bash built-in export command?
A. It allows disks to be mounted remotely.
B. It runs a command as a process in a subshell.
C. It makes the command history available to subshells.
D. It sets up environment variables for applications.
E. It shares NFS partitions for use by other systems on the network.
D
Which of the following commands converts spaces in a file to tab characters and prints the result to standard output?
A. iconv
B. expand
C. unexpand
D. tab
C
Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of Is?
A. Is 3> data
B. Is >& data
C. Is > data
D. Is >> data
Which of the following commands will reduce all consecutive spaces down to a single space?
A. tr "s”'<a.txt> b.txt
B. tr-c ” < a.txt> b.txt
C. tr-d ”< a.txt> b.txt
D. tr-r”’n'< a.txt > b.txt
E. tr-s ”<a.txt>b.txt
Which of the following statements is correct when talking about /proc/?
A. All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.
B. All files within /proc/ are read-only and their contents cannot be changed.
C. All changes to files in /proc/ are immediately recognized by the kernel.
D. All files within /proc/ are only readable by the root user.
Which of the following apt-get commands will install the newest versions of all currently installed packages?
A. auto-update
B. full-upgrade
C. dist-upgrade
D. install
E. update
Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
A. chown dan/staff file.txt
B. chown da n:staff file.txt
C. chown -u dan -g staff file.txt
D. chown dan -g staff file.txt
B
c
Which command is used to query information about the available packages on a Debian system?
A. apt-cache
B. apt-get
C. apt-search
D. dpkg
E. dpkg-search
A
Which of the following environment variables overrides or extends the list of directories holding shared libraries?
A. LD_LOAD_PATH
B. LD_LIB_PATH
C. LD_LIBRARY_PATH
D. LD_SHARE_PATH
E. LD_RUN_PATH
SIMULATION
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Your Response: type here
A. "cmdline" or "/proc/cmdline"
Which of the following commands replaces each occurrence of bob’ in the file letter with Bob’ and writes the result to the file newletter?
A. sed ‘/bob/Bob’ letter > newletter
B. sed s/bob/Bob/ letter < newletter
C. sed ‘s/bob/Bob’ letter > newletter
D. sed ‘s/bob/Bob/g’ letter > newletter
E. sed ‘s/bob, Bob/’ letter > newletter
Which of the following options must be passed to a filesystem’s entry in /etc/fstab in order to mount the file system without root privileges?
A. auto
B. norestrict
C. noauto
D. user
What happens after issuing the command vi without any additional parameters?
A. vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited.
B. vi starts and requires the user to explicitly either create a new or load an existing file.
C. vi exits with an error message as it cannot be invoked without a file name to operate on.
D. vi starts in command mode and opens a new empty file.
E. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.
How can the list of files that would be installed by the RPM package file apache-xml. rpm be previewed?
A. rpm -qp apache-xml.rpm
B. rpm -qv apache-xml.rpm
C. rpm -ql apache-xml.rpm
D. rpm -qpl apache-xml.rpm
When using rpm -verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)
A. Timestamps
B. MD5 checksums
C. Inodes
D. File sizes
E. GnuPG signatures
Creating a hard link to an ordinary file returns an error. What could be the reason for this?
A. The source file is hidden.
B. The source file is read-only.
C. The source file is a shell script.
D. The source file is already a hard link.
E. The source and the target are on different filesystems.
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)
A. source /usr/local/bin/runme.sh
B. . /usr/local/bin/runme.sh
C. /bin/bash /usr/local/bin/runme.sh
D. /usr/local/bin/runme.sh
E. run/usr/local/bin/runme.sh
Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
A. magic
B. type
C. file
D. pmagic
E. hash
Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?
A. tr ‘rn’ ”< userlist.txt > newlist.txt
B. tr -c ‘nr’ ” < newlist.txt > userlist.txt
C. tr -d ‘r’ < userlist.txt > newlist.txt
D. tr ‘r’ ‘n’ userlist.txt newlist.txt
E. tr –s ‘AM’ ‘AJ’ userlist.txt newlist.txt
Which of the following commands displays the contents of a gzip compressed tar archive?
A. gzip archive.tgz | tar xvf –
B. tar ztf archive.tgz
C. gzip -d archive.tgz | tar tvf –
D. tar cf archive.tgz
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?
A. By using the command :repeat followed by the number and the command.
B. By specifying the number right in front of a command such as 4l or 2yj.
C. By selecting all affected lines using the shift and cursor keys before applying the command.
D. By issuing a command such as :set repetitions which repeats every subsequent command 4 times.
Which command will uninstall a package but leave its configuration files in case the package is re-installed?
A. dpkg -s pkgname
B. dpkg -L pkgname
C. dpkg -P pkgname
D. dpkg -r pkgname
What does the ? symbol within regular expressions represent?
A. Match the preceding qualifier one or more times.
B. Match the preceding qualifier zero or more times.
C. Match the preceding qualifier zero or one times.
D. Match a literal ? character.
What information can the Ispci command display about the system hardware? (Choose THREE correct answers.)
A. Device IRQ settings
B. PCI bus speed
C. System battery type
D. Device vendor identification
E. Ethernet MAC address
SIMULATION
In which directory must definition files be placed to add additional repositories to yum?
Your Response: type here
A. "/etc/yum.repos.d" or "/etc/yum.repos.d/" or "yum.repos.d" or "yum.repos.d/"
In Bash, inserting 1 >&2 after a command redirects
A. standard error to standard input.
B. standard input to standard error.
C. standard output to standard error.
D. standard error to standard output.
E. standard output to standard input.
When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?
A. -rep-space
B. -print0
C. -nospace
D. -ignore-space
Which of the following commands can be used to download the RPM package kernel without installing it?
A. yum download -no-install kernel
B. yumdownloader kernel
C. rpm -download -package kernel
D. rpmdownload kernel
Which of the following commands prints a list of available package updates when using RPM-based package management?
A. dpkg list
B. yum list
C. dpkg check-update
D. yum check-update
E. yum list -update
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
A. -10
B. 0
C. 10
D. 20
Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?
A. hidemenu
B. splash
C. timeout
D. showmenu
Which of the following commands lists all currently installed packages when using RPM package management?
A. yum –query–all
B. yum–list–installed
C. rpm –query –all
D. rpm –list installed
What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)
A. To create RAID 9 arrays.
B. To dynamically change the size of logical volumes.
C. To encrypt logical volumes.
D. To create snapshots.
E. To dynamically create or delete logical volumes.
Which of the following is a limitation of the cut command?
A. The cut command can only select output by field position.
B. The cut command cannot reorder fields.
C. The cut command only works on ASCII text.
D. The cut command cannot use different input and output delimiters.
A user accidentally created the subdirectory dir in his home directory. Which of the following commands will remove that directory?
A. rmdir ~/dir’
B. rmdir "~/dir"
C. rmdir ~/’dir’
D. rmdir ~/dir
E. rmdir ~/\dir
D or E ???
Which of the following is true for hard linked files? (Choose three.)
A. The output of stat will report hard instead of regular file.
B. The hard linked files have the same permissions and owner.
C. The hard linked files share the same inode.
D. The hard linked files are indicated by a -> when listed with Is -1.
E. The hard linked files must be on the same filesystem.
Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?
A. dirname
B. which
C. basename
D. query
E. whereis
Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?
A. File size
B. Modify timestamp
C. Link count
D. Inode number
E. Permissions
Which of the following commands is used to update the list of available packages when using dpkg based package management?
A. apt-get update
B. apt-get upgrade
C. apt-cache update
D. apt-get refresh
E. apt-cache upgrade
SIMULATION
Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)
Your Response: type here
A. dpkg-reconfigure
Which of the following commands will print important system information such as the kernel version and machine hardware architecture?
A. sysinfo
B. uname
C. lspci
D. arch
E. info
SIMULATION
Which umask value will result in the default access permissions of 600 (rw——-) for files and 700 (rwx——) for directories? (Specify only the numerical umask value.)
Your Response: type here
A. "0077" or "077"
Which permissions and ownership should the file /etc/passwd have?
A. -rw1 rootroot531 Jun 5 22:45 /etc/passwd
B. -rw-r–r–1 rootroot531 Jun 5 22:45 /etc/passwd
C. -rw-r–r–1 11531 Jun 5 22:45 /etc/passwd
D. -rw1 11531 Jun 5 22:45 /etc/passwd
What does the command mount -a do?
A. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.
B. It shows all mounted file systems that have been automatically mounted.
C. It opens an editor with root privileges and loads /etc/fstab for editing.
D. It ensures that all file systems listed with the option auto in /etc/fstab are mounted.
E. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.
SIMULATION
Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)
Your Response: type here
A. HISTFILE
SIMULATION
In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Specify the correct vi command without spaces.
Your Response: type here
A. 17yy
Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?
A. <<
B. <|
C. !<
D. &<
Which of the following statements describes a difference between GNU GRUB Legacy and GRUB 2?
A. GRUB 2 no longer requires a configuration file.
B. Partition numbers start at 0 in GRUB Legacy and 1 in GRUB 2.
C. grub-mkconfig only works with GRUB Legacy if the – – version 1 option is used.
D. The configuration file menu.lst (and grub.conf) have been replaced with grub.config.
SIMULATION
Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)
Your Response: type here
A. quotacheck
SIMULATION
Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? kill-s_______daemon
Your Response: type here
A. "HUP” or "SIGHUP" or "1"
Which of the following statements is correct for a command line ending with a & character?
A. The command’s output is redirected to /dev/null.
B. The result of the command defines if the next command will be run.
C. The command is run in background of the current shell.
D. The command is run as a direct child of the init process.
Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?
A. apropos
B. which
C. find
D. query
E. whereis
C or D???
What is the default action of the split command on an input file?
A. It will break the file into new files of 1,024 byte pieces each.
B. It will break the file into new files of 1,000 line pieces each.
C. It will break the file into new files of 1,024 kilobyte pieces each.
D. It will break the file into new files that are no more than 5% of the size of the original file.
Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)
A. find /tmp -uid root -print
B. find path /tmp -uid root
C. find /tmp -user root -print
D. find /tmp -user root
E. find -path /tmp -user root print
In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
A. -dirmax
B. -maxdepth
C. -maxlevels
D. -n
E. -s
What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?
A. /lib/init.so
B. /sbin/init
C. /etc/rc.d/rcinit
D. /proc/sys/kemel/init
E. /boot/init
Which of the following commands kills the process with the PID 123 but allows the process to "clean up” before exiting?
A. kill-PIPE 123
B. kill-KILL 123
C. kill-STOP 123
D. kill-TERM 123
Which of the following describes the correct order in which the components of the system boot process are started?
A. BIOS, kernel, bootloader, init system
B. BIOS, bootloader, kernel, init system
C. Bootloader, BIOS, kernel, init system
D. BIOS, bootloader, init system, kernel
E. Bootloader, BIOS, init system, kernel
Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?
A. ext2
B. ext3
C. ext4
D. XFS
E. VFAT
Which of the following shell commands makes the already defined variable TEST visible to new child processes? (Choose two.) ?
A. visible TEST
B. declare +x TEST
C. declare -x TEST
D. export TEST
E. export -v TEST
Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?
A. sed’ /bob/Bob’ data
B. sed’s/bob/Bob/g’ data
C. sed’s/bob/Bob/’ data
D. sed’/ bob/Bob/’ data
E. sed’ s/bob, Bob/’ data
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file filel .log?
A. cat < myapp | cat > file1.log
B. myapp 0>&1 | cat > file1.log
C. myapp | cat > file1.log
D. myapp | tee file1.log
E. tee myapp file1.log
SIMULATION
Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.)
Your Response: type here
A. inittab
Is any of you guys looking for a male boyfriend?
sure babe
No for real you’re DA REAL MVP ! If i could i would buy you a beer
got your back my man!
Foun is right, great guy love you man
It should be /etc/inittab
Which of the following commands creates an ext3 filesystem on /dev/sdb1 ? (Choose TWO correct answers.)
A. /sbin/mke2fs -j /dev/sdb1
B. /sbin/mkfs -t ext3 /dev/sdb1
C. /sbin/mkfs -c ext3 /dev/sdb1
D. /sbin/mke3fs -j /dev/sdb1
Which of the following shell redirections will write standard output and standard error output to a file named filename?
A. 2>&1 >filename
B. >filename 2>&1
C. 1>&2>filename
D. >>filename
E. 1&2>filename
Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?
A. mod2fs
B. fsck
C. tune2fs
D. mke2fs
E. fixe2fs
What does the command grub-install /dev/sda do?
A. GRUB creates partitions on the device /dev/sda to be used with Linux.
B. GRUB sets the default BIOS boot device to /dev/sda.
C. GRUB installs all required files and configures the boot loader on device /dev/sda.
D. GRUB recompiles the Linux Kernel and installs it on the Master Boot Record of device /dev/sda.
SIMULATION
Which command reads and displays the current contents of the Kernel Ring Buffer on the command line? (Specify ONLY the command without any path or parameters.)
Your Response: type here
A. dmesg
Which of the following statements is correct regarding the command foo 1 > bar?
A. The stdout from the command foo is appended to the file bar.
B. The stdout from the command foo overwrites the file bar.
C. The command foo receives its stdin from the file bar.
D. The command foo receives its stdin from the stdout of the command bar.
E. The stderr from the command foo is saved to the file bar.
Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
A. chmod u=rwx,go=rx/bin/foo
B. chmod o+rwx,a+rx /bin/foo
C. chmod 577 /bin/foo
D. chmod 775 /bin/foo
When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
While /tmp/file contains data, why is /tmp/file empty afterwards?
A. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.
B. The command sed did not match anything in that file therefore the output is empty.
C. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.
D. Redirection for shell commands do not work using the > character. It only works using the | character instead.
What is the purpose of the Filesystem Hierarchy Standard?
A. It is a security model used to ensure files are organized according to their permissions and accessibility.
B. It provides unified tools to create, maintain and manage multiple filesystems in a common way.
C. It defines a common internal structure of inodes for all compliant filesystems.
D. It is a distribution neutral description of locations of files and directories.
What is the effect of the egrep command when the -v option is used?
A. It enables color to highlight matching parts.
B. It only outputs non-matching lines.
C. It shows the command s version information.
D. It changes the output order showing the last matching line first.
Which chown command will change the ownership to dave and the group to staff on a file named data . txt?
A. chown dave/staff data.txt
B. chown -u dave -g staff data.txt
C. chown –user dave –group staff data.txt
D. chown dave:staff data.txt
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
A. i (lowercase)
B. P (uppercase)
C. p (lowercase)
D. U (uppercase)
E. u (lowercase)
Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem’s make/creation time and does NOT generate them as needed?
(Choose TWO correct answers.)
A. ext3
B. JFS
C. ext2
D. XFS
E. proofs
What does the command mount -a do?
A. It mounts all available filesystems onto the current directory.
B. It shows all mounted filesystems.
C. It mounts all user mountable filesystems for the current user.
D. It mounts all filesystems listed in /etc/fstab which have the option auto set.
E. It mounts all filesystems listed in /etc/fstab which have the option noauto set.
What is the difference between the i and a commands of the vi editor?
A. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
B. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
C. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
D. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
Which RPM command will output the name of the package which supplied the file /etc/exports?
A. rpm -F /etc/exports
B. rpm -qf/etc/exports
C. rpm -Kl /etc/exports
D. rpm -qp /etc/exports
E. rpm -qi /etc/exports
What is the purpose of the xargs command?
A. It passes arguments to an X server.
B. It reads standard input (STDIN) and builds up command lines to execute.
C. It helps shell scripts take variable argument lists.
D. It asks a question, graphically, and returns the answer to the shell.
E. It allows users to specify long options for commands that normally only accept short options.
Which of the following options for the kernel’s command line changes the systemd boot target to rescue.target instead of the default target?
A. systemd.target=rescue.target
B. systemd.runlevel=rescue.target
C. systemd.service=rescue.target
D. systemd.default=rescue.target
E. systemd.unit=rescue.target
What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)
A. Entries for all possible devices get created on boot even if those devices are not connected.
B. Additional rules for udev can be created by adding them to /etc/udev/rules.d/.
C. When using udev, it is not possible to create block or character devices in /dev/ using mknod.
D. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.
E. The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.
After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)
A. By creating an ACL redirection from the old to the new path of the data.
B. By creating a hard link from the old to the new path of the data.
C. By creating a symbolic link from the old to the new path of the data.
D. By running the command touch on the old path.
E. By mounting the new filesystem on the original path of the data.
SIMULATION
Which command shows all shared libraries required by a binary executable or another shared library? (Specify ONLY the command without any path or parameters.)
Your Response: type here
A. ‘Idd’
SIMULATION
Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
Your Response: type here
A. ‘/tmp’ or ‘tmp’ or ‘/var/tmp’ or ‘/tmp/’ or ‘/var/tmp/’
SIMULATION
Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all users on the system?
Your Response: type here
A. ‘/usr/local/bin/’
Which file should be edited to select the network locations from which Debian installation package files are loaded?
A. /etc/dpkg/dpkg.cfg
B. /etc/apt/apt.conf
C. /etc/apt/apt.conf.d
D. /etc/apt/sources.list
E. /etc/dpkg/dselect.cfg
Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)
A. shutdown -R 1 now
B. shutdown -single now
C. init 1
D. telinit 1
E. runllevel 1
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
A. file /tmp/myfile.txt
B. echo "Hello" >/tmp/myfile.txt
C. sed -ie "s/1 /2/" /tmp/myfile.txt
D. echo-n "Hello" »/tmp/myfile.txt
E. touch /tmp/myfile.txt
Which of the following commands will print the last 10 lines of a text file to the standard output?
A. cat -n 10 filename
B. dump -n 10 filename
C. head -n 10 filename
D. tail -n 10 filename
In Bash, inserting 2>&1 after a command redirects:
A. standard error to standard input.
B. standard input to standard error.
C. standard output to standard error.
D. standard error to standard output.
E. standard output to standard input.
Which of the following examples for Bash file globbing matches a file named root-can-do-this . txt when used in the directory holding that file? (Choose three correct answers.)
A. root*can?do-this.{txt,odt}
B. r[oOoO]t-can-do*.txt
C. {root,user,admin}-can-??-this.txt
D. root*can*do??this.txt
E. root***{can,may}-do-this.[tT][xX][tT]
A,C,E is correct!
touch root-can-do-this.txt
ls -l (exp) return 1 when exp=A,C,E
When removing a package, which of the following dpkg options will completely remove the files including configuration files?
A. -clean
B. -delete
C. –purge
D. remove
C